package com.eshop.dao;

import com.eshop.model.Order;

import java.util.List;

public interface OrderDao {
    public Order queryOrderByOrderId(int orderId);

    public Order queryNewOrderByUserId(int userId);

    public List<Order> queryOrderByUserId(int userId);

    public List<Order> queryOrderByStatusAndUserId(int status,int userId);

    public void addOrder(Order order);

    public void updateOrderStatus(Order order);
}
